package com.example.demo.sevice.imp;

import com.example.demo.controller.data.ReturnData;
import com.example.demo.dao.BannerDao;
import com.example.demo.sevice.BannerService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class BannerServiceImp implements BannerService {
    @Resource
    BannerDao bannerDao;

    @Override
    public ReturnData getBanner() {
        return ReturnData.ok(bannerDao.findAll());
    }
}
